from Article import models
from django.db.models import Q


# 搜索文章
def search(keyword):
    articleList = (models.articles.objects.filter(
        Q(articles_title__icontains=keyword) | Q(articles_content__icontains=keyword)
        | Q(articles_label__icontains=keyword)).all())
    return articleList
